﻿using Abp.AutoMapper;
using Abp.MailKit;
using Abp.Modules;
using Abp.Reflection.Extensions;
using pandx.Mulan.Authorization;

namespace pandx.Mulan
{
    [DependsOn(
        typeof(MulanCoreModule)
        )]
    public class MulanApplicationModule : AbpModule
    {
        public override void PreInitialize()
        {
            Configuration.Authorization.Providers.Add<AppAuthorizationProvider>();
            Configuration.Modules.AbpAutoMapper().Configurators.Add(CustomDtoMapper.CreateMappings);

        }

        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(MulanApplicationModule).GetAssembly());
        }
    }
}

